package com.project.junM.controller;

import com.project.junM.service.TOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@CrossOrigin
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private TOrderService tOrderService;

    @GetMapping("/queryByMemberId")
    public boolean queryByMemberId(HttpSession session){
        return this.tOrderService.selectByMemberId(session);
    }


}
